<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="UTF-8"%>
<%@ page import="com.wondersgroup.robot.common.Nehnre" %>
<%@ page import="com.wondersgroup.robot.web.action.Chat" %>
<%@ page import="net.sf.json.JSONObject" %>

<%
	String question =  Nehnre.decode(request.getParameter("question"));
	String answer =  Nehnre.decode(request.getParameter("answer"));
	Chat chat = new Chat();
	chat.initQuestion(question,answer);
	JSONObject json = new JSONObject();
	json.accumulate("success","true");
	request.setAttribute("result",json.toString());
%>
${result}